<template>
  <view class="index-nav">
    <su-menu-group hideHeader>
      <su-menu-list :msgNums="msgNums" :list="indexNavList" ></su-menu-list>
    </su-menu-group>
  </view>
</template>

<script>
  /**
   * @description 首页导航
   * @date 2022-03-12
   * @version v1.0.1
   * @author gf
   */
  export default {
    name: 'index-nav',
    data() {
      return {
        msgNums: {},
        indexNavList: [{
            "path": "/pages/main/grant/form/form",
            "meta": {
              "title": "发起流程",
              "icon": "icon-add-square",
            }
          },
          {
            "path": "/pages/main/grant/grant",
            "meta": {
              "title": "流程查看",
              "icon": "icon-xiangmu",
            }
          },
          
          {
            "path": "/pages/main/notice/form/form",
            "meta": {
              "title": "通知发送",
              "icon": "icon-invition",
            }
          },
          {
            "path": "/pages/main/notice/notice",
            "meta": {
              "title": "回执情况",
              "icon": "icon-xiaoxi-",
            }
          },
		  {
		    "path": "/pages/main/project/projecteqy",
		    "meta": {
		      "title": "进度查询",
		      "icon": "icon-todo-list",
		    }
		  },
          // {
          //   "path": "/pages/main/attendance/attendance",
          //   "meta": {
          //     "title": "缺勤预警",
          //     "icon": "icon-dengpao1",
          //   }
          // },
        ],
      }
    },
    methods: {
      // 首页导航点击
      indeNavItemClick(item) {
        if (item.path) {
          this.$u.route({
            url: item.path
          })
        }
      },
    }
  }
</script>

<style lang="scss">
  .index-nav {
    margin-left: -30upx;
    margin-right: -30upx;
    margin-bottom: -20upx;
  }
</style>
